Add a new CARGO_MANIFEST_DIR environment variable
authorAlex Crichton <alex@alexcrichton.com>
Mon, 25 Aug 2014 12:40:47 +0000 (05:40 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Mon, 25 Aug 2014 12:48:51 +0000 (05:48 -0700)
commit97321331332c7780a245f056e5c0de07c7b889c8
tree4457030fb9e578568fab1cf5b458b062c0e76113
parent6a57afff49b2f2e2a394b22d86f38e702fefd9fd
Add a new CARGO_MANIFEST_DIR environment variable

All subprocesses will now be invoked with CARGO_MANIFEST_DIR pointing at the
root of the source directory that they are working on (compiling). This commit
also reorganizes the version environment variables to use the new
infrastructure.

Closes #433
src/cargo/ops/cargo_run.rs
src/cargo/ops/cargo_rustc/compilation.rs
src/cargo/ops/cargo_rustc/context.rs
src/cargo/ops/cargo_rustc/mod.rs
src/cargo/ops/cargo_test.rs
tests/test_cargo_compile.rs